#ifndef  __INDEX_MERGER_H_
#define  __INDEX_MERGER_H_

#include "index_reader.h"
#include "query_info.pb.h"
#include "merge_list.pb.h"

#define MAX_HOMOLOGY_NUM 100
#define SEARCH_TERM_NUM 100

class IndexMerger
{
public:
    IndexMerger(IndexReader* indexReader):m_indexReader(indexReader){}
    ~IndexMerger()
    {
        m_indexReader = NULL;
    }
    int MergeIndex(MergeList* mergeList, SearchTermList* termList);
private:
    IndexReader* m_indexReader;
    IndexList m_indexList[SEARCH_TERM_NUM][MAX_HOMOLOGY_NUM];
};














#endif  //__LIST_MERGER_H_

/* vim: set expandtab ts=4 sw=4 sts=4 tw=100: */
